<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.ambow.utils.*"%>
<%@page import="com.ambow.Entity.*"%>
<%@page import="org.hibernate.*"%>
<%@page import="com.ambow.service.impl.*"%>
<%@page import="com.ambow.service.*"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="Keywords" content="关键词1,关键词2，关键词3,关键词4,……" />
<meta name="Description" content="你网页的简述" />
<meta name="Robots" content="All" />
<meta name="Generator" content="Dreamweaver" />
<title>学生领书―套书查询</title>
<link href="<%=path %>/static/css/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {
	color: #0000FF
}

.STYLE2 {
	color: #EFF7FF
}
-->
</style>
</head>

<body>

	<h3 id="subTitle">学生领书―套书查询</h3>
	<form name="" method="post" action="<%=path %>/PackageBookServlet?status=queryPackageBook">
		<table width="90%" border="0" align="center" cellpadding="0"
			cellspacing="0" class="table">
			<tr>
				<td width="15%" align="right" class="title2">学年：</td>
				<td width="85%" class="within2bg">&nbsp; <select name="acedemicYear">
						<option>2001-2002</option>
						<option>2002-2003</option>	
						<option>2003-2004</option>	
						<option>2004-2005</option>	
						<option>2006-2007</option>	
						<option>2007-2008</option>		
				</select></td>
			</tr>
			<tr>
				<td align="right" class="title2">学期：</td>
				<td colspan="3" class="within2bg">&nbsp; <select name="semester">
						<option>1</option>
						<option>2</option>	
				</select></td>
			</tr>
			<tr>
				<td align="right" class="title2">类别：</td>
				<td colspan="3" class="within2bg">&nbsp; <select name="categoryName">
						<%Session seCategory= HibernateUtil.getSession();
				List<Category> clist =seCategory.createQuery("from Category").list();
				 HibernateUtil.clossSession(); 
				 for(int j=0;j<clist.size();j++){%>
					 <option value="<%=clist.get(j).getId()%>"><%=clist.get(j).getName()%></option>
				<% }%> 	
				</select></td>
			</tr>
			<tr>
				<td align="right" class="title2">专业：</td>
				<td colspan="3" class="within2bg">&nbsp; <select name="majorName">
						<%Session seMajor= HibernateUtil.getSession();
				List<Major> mlist =seMajor.createQuery("from Major").list();
				 HibernateUtil.clossSession(); 
				 for(int j=0;j<mlist.size();j++){%>
					 <option value="<%=mlist.get(j).getId()%>"><%=mlist.get(j).getName()%></option>
				<% }%> 	
				</select></td>
			</tr>
			<tr>
				<td align="right" class="title2">层次：</td>
				<td colspan="3" class="within2bg">&nbsp; <select name="levelName">
						<%Session seLevel= HibernateUtil.getSession();
				List<Level> llist =seLevel.createQuery("from Level").list();
				 HibernateUtil.clossSession(); 
				 for(int j=0;j<llist.size();j++){%>
					 <option value="<%=llist.get(j).getId()%>"><%=llist.get(j).getName()%></option>
				<% }%> 	
				</select></td>
			</tr>
			<tr>
				<td align="right" class="title2">年级：</td>
				<td colspan="3" class="within2bg">&nbsp; <select name="grade">
						<option>大一</option>
						<option>大二</option>
						<option>大三</option>
						<option>大四</option>
				</select></td>
			</tr>
		</table>
		<table width="90%" border="0" align="center" cellpadding="0"
			cellspacing="0" class="yesno">
			<tr>
				<td align="center"><input name="Submit2" type="submit"
					class="bevel" value="确定" />&nbsp;&nbsp; <input name="Submit3"
					type="reset" class="bevel" value="取消" /></td>
			</tr>
		</table>
	</form>
</body>
</html>